package graphics.raytracing;
import static util.MatrixOperationsF.cloo;
public class CameraPosition {

	private float[] _origin;
	private float[] _direction;
	private float[] _up;
	/**
	 * Cameraposition with an origin and a direction, the passed in arrays are cloned internally.
	 * @param up 
	 * */
	public CameraPosition(float[] ar, float[] direction, float[] up) {
		_origin = cloo(ar);
		_direction=cloo(direction);
		_up=cloo(up);
	}
	/**
	 * Returns the origin of the cameraposition, do not modify this array.
	 */
	public float[] getOrigin() {
		return _origin;
	}
	/**
	 * returns the direction, do not modify this array.
	 * @return
	 */
	public float[] getDirection()
	{
		return _direction;
	}
	public float[] getUp() {
		return _up;
		
	}
}
